<template>
  <div class="bottom_box">
    <div class="content">
      <div style="flex: 1; ">
        <dataThree
          icon="/img/myimg/bottom/shexiangtou.png"
          title="摄像头"
          value="200"
          unit="个"
          :otherData="[{name: '在线', num: '162', bgColor: '#22E08F' },{name: '离线', num: '3', bgColor: '#FF3A0E' }]"
          @click="itemClick('sxt')"
        ></dataThree>
      </div>
      <div style="flex: 1">
        <dataThree
          icon="/img/myimg/bottom/xunluodian.png"
          title="巡逻点"
          value="23"
          unit="个"
          :otherData="[{name: '在岗', num: '18', bgColor: '#22E08F' },{name: '休息', num: '5', bgColor: '#FF3A0E' }]"
          @click="itemClick('xld')"
        ></dataThree>
      </div>
      <div style="flex: 1">
        <dataThree
          icon="/img/myimg/bottom/sansechangsuo.png"
          title="三色场所"
          value="46"
          unit="人"
          :otherData="[{name: '高风险', num: '16', bgColor: '#FF3A0E' },{name: '人员密集场所', num: '3', bgColor: '#FF9E36' },{name: '一般场所', num: '3', bgColor: '#0EBFFF' }]"
          @click="itemClick('sscs')"
        ></dataThree>
      </div>
    </div>
  </div>
</template>
<script setup>
import dataThree from "../mConponents/dataThree.vue"
const emit = defineEmits(["itemClick"])
const itemClick = (e) => {
  emit("itemClick", e)
}
</script>
<style scoped lang="less">
.bottom_box {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 130px;
  display: flex;
  justify-content: center;
}
.content {
  position: relative;
  background-image: url("/img/myimg/bottom/bottombg.png");
  background-size: 700px 130px;
  width: 700px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 30px 50px;
}
</style>
